package GUI;

import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.DefaultComboBoxModel;

public class DurationStageManager_GUI extends JPanel{

	private JComboBox numDay;
	private JButton btnSubmit;
	private JButton btnCancel;
	
	public DurationStageManager_GUI(){
		setLayout(null);
		
		
		JLabel lblDetermineStageDuration = DefaultComponentFactory.getInstance().createTitle("Determine stage duration ");
		lblDetermineStageDuration.setIcon(new ImageIcon(DetermineStageDuration_GUI.class.getResource("/Picture/network-clock-icon.png")));
		lblDetermineStageDuration.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblDetermineStageDuration.setBounds(10, 0, 335, 128);
		add(lblDetermineStageDuration);
		
		JLabel lblReqNum = DefaultComponentFactory.getInstance().createLabel("Choose number of day for your stage:");
		lblReqNum.setFont(new Font("Arial", Font.BOLD, 12));
		lblReqNum.setBounds(30, 209, 244, 27);
		add(lblReqNum);
		
		numDay = new JComboBox();
		numDay.setModel(new DefaultComboBoxModel(new String[] {"", "1", "2", "3", "4", "5", "6", "7"}));
		numDay.setBounds(165, 262, 180, 27);
		add(numDay);
		

		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(DetermineStageManger_GUI.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(10, 461, 135, 47);
		add(btnCancel);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(DetermineStageManger_GUI.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(305, 461, 135, 47);
		add(btnSubmit);
		

		
	}

	public JComboBox getNumDay() {
		return numDay;
	}

	public void setNumDay(JComboBox numDay) {
		this.numDay = numDay;
	}

	public JButton getBtnSubmit() {
		return btnSubmit;
	}

	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	public JButton getBtnCancel() {
		return btnCancel;
	}

	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}
}
